{%load markup%}
<h2>{{person.name}}</h2>
<h3>Ссылки:</h3>
{%for usage in person.usages.all%}
   <i>{{usage.work_text|markdown:"thesaurus"|linebreaks}}</i> &mdash; <a href="/works/code/{{usage.work.code}}">{{usage.work.code}}</a> <br>
   <blockquote>{{usage.comment|markdown:"thesaurus"|linebreaks}}</blockquote>
   <br>
{%endfor%}
{%if person.mentions.all%}<h3>Упоминания в текстах:</h3>{%endif%}
{%for work in person.mentions.all%}
    <p><a href="/works/code/{{work.code}}">{{work.code}} ({{work.name}})</a></p>
{%endfor%}
{%ifnotequal person.name "Марина Цветаева"%}
{%if person.works.all%}<h3>Произведения:</h3>{%endif%}
{%for work in person.works.all%}
    <p><a href="/works/code/{{work.code}}">{{work.code}} ({{work.name}})</a></p>
{%endfor%}
{%endifnotequal%}
<h3>Информация:</h3>
{{person.text|markdown:"thesaurus"}}
